package com.hsy.linemoney.modules.common;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.EditText;

/**
 * Created by MartinKent on 2016/7/18.
 */
public class EditTextExt extends EditText {
    public EditTextExt(Context context) {
        super(context);
    }

    public EditTextExt(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public EditTextExt(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public void setText(CharSequence text, BufferType type) {
        super.setText(text, type);
        setSelection(null == text ? 0 : text.length());
    }
}
